package com.dingding.service.recruit;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.facde.recruit.IDriverRecruitFacade;
import com.dingding.facde.recruit.dto.DriverRecruitCityDTO;
import com.dingding.facde.recruit.dto.ReqGetDriverRecruitInfoDTO;
import com.dingding.facde.recruit.dto.ReqSignUpDTO;
import com.dingding.facde.recruit.dto.ReqValidateCode;
import com.dingding.facde.recruit.dto.ResGetDriverRecruitInfoDTO;
import com.dingding.facde.recruit.dto.ResValidateCode;
import com.dingding.service.recruit.core.service.IDriverRecruitService;

/**
 * 
 * @ClassName: DriverRecruitFacadeImpl 
 * @Description: 司机招募服务接口实现类
 * @author YHQ
 * @date 2016年11月11日 下午3:12:14
 * @since V2.5.6
 * 
 */
@Component("driverRecruitFacade")
public class DriverRecruitFacadeImpl implements IDriverRecruitFacade{

	@Resource(name = "driverRecruitService")
	private IDriverRecruitService driverRecruitService;

	/**
	 * 
	 * @Title: getDriverRecruitCity 
	 * @Description: 获取司机招募城市
	 * @author YHQ 
	 * @since V2.5.6
	 * @return List<DriverRecruitCityDTO>    返回类型
	 * 
	 */
	@Override
	public List<DriverRecruitCityDTO> getDriverRecruitCity() {
		
		return driverRecruitService.getDriverRecruitCity();
	}

	/**
	 * 
	 * @Title: getDriverRecruitInfo 
	 * @Description: 获取司机招募报名信息
	 * @param recruitInfo 客户端请求Bean
	 * @author YHQ 
	 * @since V2.5.6
	 * @return ResGetDriverRecruitInfo    返回类型
	 * 
	 */
	@Override
	public ResGetDriverRecruitInfoDTO getDriverRecruitInfo(ReqGetDriverRecruitInfoDTO recruitInfo) {
		
		return driverRecruitService.getDriverRecruitInfo(recruitInfo);
	}

	/**
	 * 
	 * @Title: driverSignUp 
	 * @Description: 招募司机报名
	 * @param @param reqSignUpDTO 客户端请求Bean
	 * @author YHQ 
	 * @since V2.5.6
	 * @return boolean    true:报名成功   false:报名失败
	 * 
	 */
	@Override
	public boolean driverSignUp(ReqSignUpDTO reqSignUpDTO) {
		
		return driverRecruitService.driverSignUp(reqSignUpDTO);
	}

	/**
	 * 
	 * @Title: validateCode 
	 * @Description: 验证手机验证码
	 * @param reqValidateCode 客户端请求Bean
	 * @author YHQ 
	 * @since V2.5.6
	 * @return ResValidateCode    返回类型
	 * 
	 */
	@Override
	public ResValidateCode validateCode(ReqValidateCode reqValidateCode) {
		
		return driverRecruitService.validateCode(reqValidateCode);
	}
	
}
